#ifndef __SYS_THREAD_H__
#define __SYS_THREAD_H__

/// <summary>
/// Thread Macros
/// </summary>
#define THREAD_STACK 1024*64 // 64kB stack

/// <summary>
/// The Database structure
/// describes a kernel-mode device
/// context to create.
/// </summary>
typedef struct _Thread
{
	PID id;
	int state;
	void *stack;

} Thread, *ThreadPtr;

/// <summary>
/// Thread Pipeline
/// </summary>
int CreateThread(ThreadPtr thread, int (*start)(void*), void *arg);

#endif